package com.wgchao.identityrightsmanagement.domain;

import com.wgchao.identityrightsmanagement.domain.DomainObject;

import java.util.List;

/**
 * @ClassName: BaseRepository
 * @author: wgchao
 * @createTime: 2020/6/6 9:25 AM
 * @Description: TODO
 */
public interface BaseRepository<T extends DomainObject, I> {
    T findById(I i);
    void remove(T t, String operator);
    void add(T t, String operator);
    void addAll(List<T> ts, String operator);
    void removeAll(List<T> ts, String operator);
}
